package com.sf.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class DateUtil {
    public static String getDay() {
        SimpleDateFormat sdf = new SimpleDateFormat("MMdd");
        return sdf.format(new Date());
    }

    public static Date getEndTime(int delay) {
        Calendar endTime = Calendar.getInstance();
        endTime.add(Calendar.MINUTE, delay);
        return endTime.getTime();
    }
}
